/**   
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-07-26 17:45:30  
 * Copyright (c) 2015- -版权所有     
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.entity.BpDeviceFacilityAttachmentDesc;

import com.joysuch.wwyt.bp.bean.BpDeviceFacilityAttachmentDescDetailBean;
import com.joysuch.wwyt.bp.bean.BpDeviceFacilityAttachmentDescEditBean;
import com.joysuch.wwyt.bp.bean.BpDeviceFacilityAttachmentDescListBean;
import static com.joysuch.wwyt.bp.bean.BpDeviceFacilityAttachmentDescListBean.SearchBpDeviceFacilityAttachmentDesc;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BpDeviceFacilityAttachmentDescService {

    public BpDeviceFacilityAttachmentDesc add(BpDeviceFacilityAttachmentDescEditBean entity);

    void update(BpDeviceFacilityAttachmentDescEditBean entity);

    Page<BpDeviceFacilityAttachmentDescListBean> findByPage(Pageable page,SearchBpDeviceFacilityAttachmentDesc condition);

    void delete(Long id) throws BusinessRestrictionsException;

    BpDeviceFacilityAttachmentDescDetailBean getById(Long id);

    BpDeviceFacilityAttachmentDesc findById(Long id);
}
